package com.mojang.ld22.screen;

import com.mojang.ld22.gfx.Color;
import com.mojang.ld22.gfx.Font;
import com.mojang.ld22.gfx.Screen;

public class AboutMenu extends Menu {
	private Menu parent;

	public AboutMenu(Menu parent) {
		this.parent = parent;
	}

	public void tick() {
		if (input.attack.clicked || input.menu.clicked) {
			game.setMenu(parent);
		}
	}

	public void render(Screen screen) {
		screen.clear(3);
		Font.draw("Minicraft was made by Markus Persson", screen, 0 * 8 + 4, 3 * 8, Color.get(-1, 333, 333, 333));
		Font.draw("For the 22'nd ludum dare competition", screen, 0 * 8 + 4, 4 * 8, Color.get(-1, 333, 333, 333));
		Font.draw("in december 2011 and is dedicated to", screen, 0 * 8 + 4, 5 * 8, Color.get(-1, 250, 333, 333));
		Font.draw(" his father =).", screen, 0 * 8 + 4, 6 * 8, Color.get(-1, 333, 333, 333));
		Font.draw("The project is refined by the", screen, 0 * 8 + 4, 8 * 8, Color.get(-1, 333, 333, 333));
		Font.draw("DLP Production Team:", screen, 0 * 8 + 4, 9 * 8, Color.get(-1, 333, 333, 333));
		Font.draw("dlp.host56.com", screen, 0 * 8 + 4, 10 * 8, Color.get(-1, 79, 134, 255));
	}
}
